{if $relation_list}
<thead>
  <tr style="background: #eaeaea; width:100%;">
    <th style="min-width: 30px;">封面</th>
    <th style="min-width: 150px;">标题</th>
    <th style="min-width: 60px">一口价</th>
    <th style="min-width: 60px">折扣</th>
    <th style="min-width: 60px">促销价格</th>
    <th style="min-width: 100px">操作</th>
  </tr>
</thead>
<tbody>
{foreach $relation_list as $k=>$v}
  <tr id="Relation{$v.id}">
    {$cover = _uri('attachment', (int)$v.cover, 'path')}
    {$image = _image($cover, small)}
      <td>
        <img src="{$image}" width="30"/>
      </td>
      <td>{$v.title}</td>
      <td>{$v.price}</td>
      <td class="js_editDiscount" data-price="{$v.price}" data-sale_price="{$v.sale_price}">{$v.discount}</td>
      <td class="js_salePrice">{$v.sale_price}</td>
      <td>
        <a data-type="edit" data-id="{$v.id}" class="btn btn-info btn-xs js_editRelation"><i class="icon-edit icon-white"></i>编辑</a>
        {*<a data-href="{AnUrl("goods/admin/delete_relation_goods?id={$v.id}")}" class="btn btn-danger btn-xs js_deleteRelation"><i class="icon-trash icon-white"></i>删除</a>*}
        <a href="{AnUrl("goods/admin/delete_relation_goods?id={$v.id}")}" class="btn btn-danger btn-xs deleteOne"><i class="icon-trash icon-white"></i>删除</a>
      </td>
  </tr>
{/foreach}
</tbody>
{else}
  当前商品暂无关联商品
{/if}